﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eatime.Entitys
{
    public class User : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        private string email = string.Empty;
        public string Email
        {
            get { return this.email; }
            set
            {
                if (value != this.email)
                {
                    this.email = value;
                    NotifyPropertyChanged("Email");
                }
            }
        }
        private string password = string.Empty;
        public string Password
        {
            get
            {
                return this.password;
            }
            set
            {
                if (value != this.password)
                {
                    this.password = value;
                    NotifyPropertyChanged("Password");
                }
                ;
            }
        }
        private string password1 = string.Empty;
        public string Password1
        {
            get
            {
                return this.password1;
            }
            set
            {
                if (value != this.password1)
                {
                    this.password1 = value;
                    NotifyPropertyChanged("Password1");
                }
                ;
            }
        }
        private bool isLogin;
        public bool IsLogin { get; set; }

        private bool isError;
        public bool IsError { get; set; }

        private string errorMessage = string.Empty;
        public string ErrorMessage { get; set; }

        private string avatar = string.Empty;
        public string Avatar
        {
            get
            {
                return this.avatar;
            }
            set
            {
                if (value != this.avatar)
                {
                    this.avatar = value;
                    NotifyPropertyChanged("Avatar");
                }
                ;
            }
        }
        private Guid id1;
        public Guid id { get; set; }
        private int userId;
        public int UserId { get; set; }
        private string cellphone1 = string.Empty;
        public string cellphone { get; set; }
        private string detailaddress = string.Empty;
        public string detailAddress { get; set; }
        private int areaid;
        public int areaId { get; set; }
        private int circleid;
        public int circleId { get; set; }
        private int series1;
        public int series { get; set; }
        private int models1;
        public int models { get; set; }
        private string mycar = string.Empty;
        public string MyCar
        {
            get
            {
                return this.mycar;
            }
            set
            {
                if (value != this.mycar)
                {
                    this.mycar = value;
                    NotifyPropertyChanged("MyCar");
                }
                ;
            }
        }
    }
}
